//************************************************
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_produce_use.js中编写
//************************************************
export default function () {
	return {
		editFormFields: {},
		editFormOptions: [],
		searchFormFields: { Voucher_sub: '', Goods_sub: '', Goods_name: '', Goods_num: '', Proposer: '', Production_state: '', WHSE_jg: '', WHSE_no: '', AuditStatus: '' },
		searchFormOptions: [
			{ title: '单据编码', field: 'Voucher_sub', type: 'like' },
			{ title: '产品编码', field: 'Goods_sub', type: 'like' },
			{ title: '产品名称', field: 'Goods_name', type: 'like' },
			{ title: '领用人', field: 'Proposer', type: 'like' },
			{ title: '数量', field: 'Goods_num', type: 'range' },
			{ type: 'group' },
			{ key: '一级仓库', data: [], title: '机构', field: 'WHSE_jg' , type: 'select'},
			{ key: '生产工位', data: [], title: '生产工位', field: 'WHSE_no' , type: 'select'},
			{ key: '生产状态', data: [], title: '生产状态', field: 'Production_state', type: 'select' },
			{ key: 'audit', data: [], title: '审核状态', field: 'AuditStatus', type: 'select' }
		],
		columns: [
			{ field: 'Voucher_sub', title: '单据编码', type: 'string', link: true },
			{ field: 'Goods_sub', title: '产品', type: 'select' ,bind: { key: '商品',data: []}},
			{ field: 'Goods_name', title: '产品名称', type: 'string' ,hidden:true},
			{ field: 'Goods_num', title: '数量', type: 'float' },
			{ field: 'Proposer', title: '领用人', type: 'string' },
			{ field: 'Production_state', title: '生产状态', type: 'int', bind: { key: '生产状态', data: [] } },
			{ field: 'WHSE_jg', title: '机构', type: 'string', bind: { key: '一级仓库', data: [] } },
			{ field: 'WHSE_no', title: '生产工位', type: 'string', bind: { key: '生产工位', data: [] } },
			{ field: 'AuditStatus', title: '审核状态', type: 'int', bind: { key: 'audit', data: [] } },
			{ field: 'Remark', title: '备注', type: 'string' }
		],
		table: {
			key: 'Produce_use',
			footer: 'Foots',
			cnName: '生产领用单',
			name: 'q_produce_use',
			url: '/q_produce_use/',
			sortName: 'Voucher_sub'
		}
	};
}
